# Docker 镜像构建

FROM registry.cn-hangzhou.aliyuncs.com/yeswater/jdk-8:1.0

# Copy local code to the container image.
WORKDIR /app/target
#COPY pom.xml .
#COPY src ./src
COPY target/mianshiyang-0.0.1-SNAPSHOT.jar /app/target/mianshiyang-0.0.1-SNAPSHOT.jar

# Build a release artifact.
#RUN #mvn package -DskipTests

# Run the web service on container startup.
#CMD ["java","-jar","/app/target/mianshiyang-0.0.1-SNAPSHOT.jar","--spring.profiles.active=prod"]
CMD ["java","-jar","/app/target/mianshiyang-0.0.1-SNAPSHOT.jar"]